package com.cowcode.entity;

import java.sql.Timestamp;

/**
 * User: ljy
 * Date: 2021/6/26
 * Time: 15:24
 */
public class Question {
    private int qid;
    private String qtext;
    private User uid;
    private Timestamp qsend;
    private Study sid;//文章语言主题  java/c


    @Override
    public String toString() {
        return "Question{" +
                "qid=" + qid +
                ", qtext='" + qtext + '\'' +
                ", uid=" + uid +
                ", qsend=" + qsend +
                ", study=" + sid +
                '}';
    }

    public Question() {
    }

    public int getQid() {
        return qid;
    }

    public void setQid(int qid) {
        this.qid = qid;
    }

    public String getQtext() {
        return qtext;
    }

    public void setQtext(String qtext) {
        this.qtext = qtext;
    }

    public User getUid() {
        return uid;
    }

    public void setUid(User uid) {
        this.uid = uid;
    }

    public Timestamp getQsend() {
        return qsend;
    }

    public void setQsend(Timestamp qsend) {
        this.qsend = qsend;
    }

    public Study getSid() {
        return sid;
    }

    public void setSid(Study sid) {
        this.sid = sid;
    }

    public Question(int qid, String qtext, User uid, Timestamp qsend, Study study) {
        this.qid = qid;
        this.qtext = qtext;
        this.uid = uid;
        this.qsend = qsend;
        this.sid = study;
    }
}
